
CC=g++
CFLAGS=-Wall -g -D_DEBUG
LDFLAGS=-lmad -lpthread -lasound -lSDL -lid3tag
COMPILE = $(CC) $(CFLAGS) -c
LINK = $(CC) $(LDFLAGS)

objects = 	sdlmad.o decode.o alsa.o id3.o 

all: willy-player

willy-player: $(objects)
	$(LINK) -o $@ $(objects)

%.o: %.cpp 
	$(COMPILE) $<

clean: 
	rm -f *.o
	rm -f willy-player
